// 危险品运输车辆许可证
import request from '@/utils/request'

// 查询车辆许可证分页
export function pageCarCert(query) {
  return request({
    url: '/base/carCert/page',
    method: 'get',
    params: query,
    factoryId:true,
  })
}

// 查询车辆许可证列表
export function listCarCert(query) {
  return request({
    url: '/base/carCert/list',
    method: 'get',
    params: query,
    factoryId:true
  })
}

// 查询车辆许可证详细
export function getCarCert(id) {
  return request({
    url: '/base/carCert/info/' + id,
    method: 'get'
  })
}

// 新增车辆许可证
export function addCarCert(data) {
  return request({
    url: '/base/carCert',
    method: 'post',
    data: data,
    factoryId:true,
  })
}

// 修改车辆许可证
export function updateCarCert(data) {
  return request({
    url: '/base/carCert',
    method: 'put',
    data: data
  })
}

// 删除车辆许可证
export function delCarCert(data) {
  return request({
    url: '/base/carCert/remove/batch',
    method: 'delete',
    data
  })
}

// 导出车辆许可证
export function exportCarCert(query) {
  return request({
    url: '/base/carCert/export',
    method: 'get',
    params: query
  })
}

// 下载模板车辆许可证
export function downImportTemplate() {
  return request({
    url: '/base/carCert/importTemplate',
    method: 'get'
  })
}